package com.atguigu.yygh.hosp.repository;

import com.atguigu.yygh.model.hosp.Hospital;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author A
 * @version 1.0
 * @description: TODO
 * @date 2025/3/15 22:28
 */
@Repository
public interface HospitalMongoDbRepository extends MongoRepository<Hospital, String> {

    public Hospital findHospitalByHoscode(String hoscode);

    List<Hospital> findHospitalByHosnameLike(String name);
}
